home *** CD-ROM | disk | FTP | other *** search
- From: wyvern@msn.com (Jeffrey Smith)
- Subject: Compiler warnings using MSVC++ 4.0 and STL
- Date: 8 Jan 96 21:52:58 -0800
- Message-ID: <00001a81+00008a12@msn.com>
- Path: news.msn.com!msn.com
- Newsgroups: comp.lang.c++
- Organization: The Microsoft Network (msn.com)
-
- I'm getting the following warnings when using multimap from stl with my code
- and the msvc++ 4.0 compiler.
-
- Below is the list of warnings and following it is the code. The code is
- simply an instantiation of the multimap template using built in types.
- My actual code is more complex, but it gets the same warnings.
-
- Has anyone modified stl to remove these warnings. I use #pragma to defeat
- the warning for the "identifier truncated.." warning, but the "same type
- qualifier..." warning I want to try to fix within stl, if possible.
-
- Anyone have any ideas?
-
- Thanks in advance,
-
- Jeff Smith
- wyvern@msn.com
-
- begin compiler messages and test code ----------------------------
- Compiling...
- tstmap.cpp
- c:\msdev\stl\pair.h(26) : warning C4114: same type qualifier used
- more than once
- H:\projects\tst\tstmap.cpp(7) : warning C4786: 'pair<rb_tree<unsigned
- int,pair<unsigned int,unsigned int>,select1st<pair<unsigned
- int,unsigned int>,unsigned int>,less<unsigned
- int>>::iterator,rb_tree<unsigned int,pair<unsigned int,unsigned
- int>,select1st<pair<unsigned int,unsigned int>,unsigned
- int>,less<unsigned int>>::iterator>' : identifier was truncated to
- '255' characters in the debug information
- H:\projects\tst\tstmap.cpp(7) : warning C4786: 'pair<rb_tree<unsigned
- int,pair<unsigned int,unsigned int>,select1st<pair<unsigned
- int,unsigned int>,unsigned int>,less<unsigned
- int>>::const_iterator,rb_tree<unsigned int,pair<unsigned int,unsigned
- int>,select1st<pair<unsigned int,unsigned int>,unsigned
- int>,less<unsigned int>>::const_iterator>' : identifier was truncated
- to '255' characters in the debug information
- c:\msdev\stl\tree.h(746) : warning C4786: 'pair<rb_tree<unsigned
- int,pair<unsigned int,unsigned int>,select1st<pair<unsigned
- int,unsigned int>,unsigned int>,less<unsigned
- int>>::iterator,rb_tree<unsigned int,pair<unsigned int,unsigned
- int>,select1st<pair<unsigned int,unsigned int>,unsigned
- int>,less<unsigned int>>::iterator>' : identifier was truncated to
- '255' characters in the debug information
- c:\msdev\stl\tree.h(746) : warning C4786: 'pair<rb_tree<unsigned
- int,pair<unsigned int,unsigned int>,select1st<pair<unsigned
- int,unsigned int>,unsigned int>,less<unsigned
- int>>::iterator,rb_tree<unsigned int,pair<unsigned int,unsigned
- int>,select1st<pair<unsigned int,unsigned int>,unsigned int>,les' :
- identifier was truncated to '255' characters in the debug information
- c:\msdev\stl\tree.h(746) : warning C4786: 'pair<rb_tree<unsigned
- int,pair<unsigned int,unsigned int>,select1st<pair<unsigned
- int,unsigned int>,unsigned int>,less<unsigned
- int>>::iterator,rb_tree<unsigned int,pair<unsigned int,unsigned
- int>,select1st<pair<unsigned int,unsigned int>,unsigned
- int>,less<unsigned int>>::iterator>' : identifier was truncated to
- '255' characters in the debug information
- c:\msdev\stl\tree.h(838) : warning C4786: 'pair<rb_tree<unsigned
- int,pair<unsigned int,unsigned int>,select1st<pair<unsigned
- int,unsigned int>,unsigned int>,less<unsigned
- int>>::const_iterator,rb_tree<unsigned int,pair<unsigned int,unsigned
- int>,select1st<pair<unsigned int,unsigned int>,unsigned
- int>,less<unsigned int>>::const_iterator>' : identifier was truncated
- to '255' characters in the debug information
- c:\msdev\stl\tree.h(838) : warning C4786: 'pair<rb_tree<unsigned
- int,pair<unsigned int,unsigned int>,select1st<pair<unsigned
- int,unsigned int>,unsigned int>,less<unsigned
- int>>::const_iterator,rb_tree<unsigned int,pair<unsigned int,unsigned
- int>,select1st<pair<unsigned int,unsigned int>,unsigned in' :
- identifier was truncated to '255' characters in the debug information
- c:\msdev\stl\tree.h(838) : warning C4786: 'pair<rb_tree<unsigned
- int,pair<unsigned int,unsigned int>,select1st<pair<unsigned
- int,unsigned int>,unsigned int>,less<unsigned
- int>>::const_iterator,rb_tree<unsigned int,pair<unsigned int,unsigned
- int>,select1st<pair<unsigned int,unsigned int>,unsigned
- int>,less<unsigned int>>::const_iterator>' : identifier was truncated
- to '255' characters in the debug information
- c:\msdev\stl\tree.h(322) : warning C4786: 'rb_tree<unsigned
- int,pair<unsigned int,unsigned int>,select1st<pair<unsigned
- int,unsigned int>,unsigned int>,less<unsigned int>>::rb_tree<unsigned
- int,pair<unsigned int,unsigned int>,select1st<pair<unsigned
- int,unsigned int>,unsigned int>,less<unsigned int>>' : identifier was
- truncated to '255' characters in the debug information
- c:\msdev\stl\tree.h(355) : warning C4786: 'rb_tree<unsigned
- int,pair<unsigned int,unsigned int>,select1st<pair<unsigned
- int,unsigned int>,unsigned int>,less<unsigned
- int>>::~rb_tree<unsigned int,pair<unsigned int,unsigned
- int>,select1st<pair<unsigned int,unsigned int>,unsigned
- int>,less<unsigned int>>' : identifier was truncated to '255'
- characters in the debug information
- c:\msdev\stl\algobase.h(39) : warning C4786: 'pair<rb_tree<unsigned
- int,pair<unsigned int,unsigned int>,select1st<pair<unsigned
- int,unsigned int>,unsigned int>,less<unsigned
- int>>::iterator,rb_tree<unsigned int,pair<unsigned int,unsigned
- int>,select1st<pair<unsigned int,unsigned int>,unsigned
- int>,less<unsigned int>>::iterator>' : identifier was truncated to
- '255' characters in the debug information
- c:\msdev\stl\algobase.h(39) : warning C4786: 'pair<rb_tree<unsigned
- int,pair<unsigned int,unsigned int>,select1st<pair<unsigned
- int,unsigned int>,unsigned int>,less<unsigned
- int>>::const_iterator,rb_tree<unsigned int,pair<unsigned int,unsigned
- int>,select1st<pair<unsigned int,unsigned int>,unsigned
- int>,less<unsigned int>>::const_iterator>' : identifier was truncated
- to '255' characters in the debug information
- tstmap.obj - 0 error(s), 13 warning(s)
-
-
- #include "multimap.h"
- void main()
- {
- multimap< unsigned int, unsigned int, less<unsigned int> > map;
- }
-
- end compiler messages and test code ----------------------------
-